package com.hxit.huaxiamelongarden.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UploadMapper {
    //更新数据库的头像信息
    @Update("update users set image=#{url} where user_id=#{userId}")
    void updateImage(@Param("userId") int userId, @Param("url") String url);
}
